﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.MasterServer
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System;
using System.ComponentModel;

#nullable disable
namespace UnityEngine
{
  /// <summary>
  ///   <para>The Master Server is used to make matchmaking between servers and clients easy.</para>
  /// </summary>
  [EditorBrowsable(EditorBrowsableState.Never)]
  [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
  public class MasterServer
  {
    /// <summary>
    ///   <para>The IP address of the master server.</para>
    /// </summary>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static string ipAddress
    {
      get
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
      set
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
    }

    /// <summary>
    ///   <para>The connection port of the master server.</para>
    /// </summary>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static int port
    {
      get
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
      set
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
    }

    /// <summary>
    ///   <para>Request a host list from the master server.</para>
    /// </summary>
    /// <param name="gameTypeName"></param>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static void RequestHostList(string gameTypeName)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Check for the latest host list received by using MasterServer.RequestHostList.</para>
    /// </summary>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static HostData[] PollHostList()
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Register this server on the master server.</para>
    /// </summary>
    /// <param name="gameTypeName"></param>
    /// <param name="gameName"></param>
    /// <param name="comment"></param>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static void RegisterHost(string gameTypeName, string gameName)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Register this server on the master server.</para>
    /// </summary>
    /// <param name="gameTypeName"></param>
    /// <param name="gameName"></param>
    /// <param name="comment"></param>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static void RegisterHost(string gameTypeName, string gameName, string comment)
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Unregister this server from the master server.</para>
    /// </summary>
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static void UnregisterHost()
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Clear the host list which was received by MasterServer.PollHostList.</para>
    /// </summary>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static void ClearHostList()
    {
      throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
    }

    /// <summary>
    ///   <para>Set the minimum update rate for master server host information update.</para>
    /// </summary>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static int updateRate
    {
      get
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
      set
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
    }

    /// <summary>
    ///   <para>Report this machine as a dedicated server.</para>
    /// </summary>
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.", true)]
    public static bool dedicatedServer
    {
      get
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
      set
      {
        throw new NotSupportedException("The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.");
      }
    }
  }
}
